﻿namespace SDCloudSolution.SDCloud.WebApi.Entities
{
    /// <summary>
    /// Represents an error message from WebApi.
    /// </summary>
    public class ErrorRestModel
    {
        /// <summary>
        /// The error message that provided by WebApi exception.
        /// </summary>
        public string Message { get; set; }
    }

    /// <summary>
    /// Represents an error message with relation to specific parameter.
    /// </summary>
    public class ErrorWithParameterRestModel : ErrorRestModel
    {
        /// <summary>
        /// The name of the parameter.
        /// </summary>
        public string ParameterName { get; set; }

        /// <summary>
        /// The parameter value.
        /// </summary>
        public string ParameterValue { get; set; }
    }
}
